package main

import "fmt"

type Anything interface {
}

func AcceptAnything(thing interface{}) {
	fmt.Println(thing)
	t, ok := thing.(test)
	if ok {
		t.MakeSound()
	}
}

type test string

func (t test) MakeSound() {
	fmt.Println("t:", t)
}

func main() {
	AcceptAnything(3.1415)
	AcceptAnything("A string")
	AcceptAnything(true)
	AcceptAnything(test("123"))
}
